// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   QNA5B6.java

package org.quickserver.net.GB268753QN.control;

import java.util.*;
import org.quickserver.net.model.*;
import org.quickserver.net.server.ClientHandler;
import org.quickserver.util.data.dataProcessing;

public class QNA5B6
{

    public QNA5B6()
    {
    }

    public static void QNA5B6OBJ(ClientHandler handler, String strs[], String serialNumber)
    {
        GBServerData ec = (GBServerData)handler.getClientData();
        int total = dataProcessing.hexStringToInt10(strs[1]);
        List Alist = new ArrayList();
        int index = 0;
        for(int i = 0; i < total; i++)
        {
            int smL = dataProcessing.hexStringToInt10(strs[4 + index]);
            String componentExplain[] = dataProcessing.strsToStrs(strs, 5 + index, (5 + index + smL) - 1);
            String explain = dataProcessing.gB18030ByteArrayToUtf8String(dataProcessing.hexStringsToByteArray(componentExplain));
            Architecture architecture = new Architecture();
            architecture.setComponentExplain(explain);
            architecture.setSysType(dataProcessing.hexStringToInt10(strs[2 + index]));
            architecture.setSysAddress(dataProcessing.hexStringToInt10(strs[3 + index]));
            Alist.add(architecture);
            if(i == 0)
                index = index + smL + 3 + 2;
            else
                index = index + smL + 3;
        }

        Map map = new HashMap();
        map.put("architecture", Alist);
        List list = ec.getSerialNumberList();
        for(int i = 0; i < list.size(); i++)
        {
            GB26875SetUp gs = (GB26875SetUp)list.get(i);
            if(!gs.getSerialNumber().equals(serialNumber))
                continue;
            ((GB26875SetUp)list.get(i)).setTrue(true);
            ((GB26875SetUp)list.get(i)).setOk(true);
            ((GB26875SetUp)list.get(i)).setDataMap(map);
            break;
        }

    }
}
